﻿using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Himall.Entity.Config
{
    public class ProductTypeInfoConfig : EntityTypeConfiguration<ProductTypeInfo>
    {
        public ProductTypeInfoConfig()
        {
            ToTable("Himall_Types");
            Property(item => item.Name).HasColumnType("varchar").HasMaxLength(100);
            Property(item => item.ColorAlias).HasColumnType("varchar").HasMaxLength(100);
            Property(item => item.SizeAlias).HasColumnType("varchar").HasMaxLength(100);
            Property(item => item.VersionAlias).HasColumnType("varchar").HasMaxLength(100);

        }
    }
}
